﻿using BBICMS.Model;
using PagedList;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BBICMS.Application.ViewModels
{
    public class LanguageListVM
    {
        public IQueryable<Language> Languages { get; set; }
        public int PageSize { get; set; }
        public int PageNumber { get; set; }
        public IPagedList<Language> OnePageOfLanguages
        {
            get
            {
                if (this.Languages != null)
                {
                    return this.Languages.ToPagedList(PageNumber, PageSize);
                }
                return null;
            }
        }
    }

 
}
